package com.redis.demo.pojo;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.io.Serializable;

@Component
@AllArgsConstructor
@NoArgsConstructor
@Data
//在企业中，我们的所有pojo都会序列化！！
public class User implements Serializable {
    private String username;
    //String password;
    private int age;
}
